package com.nacos.common.api.servicedate;

import com.nacos.common.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-dbservice")
public interface DbServiceUsersApi {

    @RequestMapping("/dbservice/userinfo/")
    public UserDTO getUserInfo(@RequestBody UserDTO user) ;

    @RequestMapping("/dbservice/updateUserInfo/")
    public void updateUserInfo(@RequestBody UserDTO user);
}
